<?php

namespace app\index\controller;

use app\common\controller\Frontend;
use think\Lang;

/**
 * Ajax异步请求接口
 * @internal
 */
class Common extends Frontend
{

    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];
    protected $layout = '';

   public function getnowdate()
   {
       $weekarray = array("日", "一", "二", "三", "四", "五", "六"); //先定义一个数组
        $week = "星期" . $weekarray[date("w")];
        $nowdate = date('Y年-m月-d日', time()) . " " . $week;
        return $nowdate;
   }

}
